import Vue from 'vue'
import App from './App.vue'
import router from "./router";
import axios from 'axios'
import store from './store';
axios.defaults.baseURL = 'http://localhost:8085'
axios.interceptors.request.use(config=>{
  const token= localStorage.getItem('token')

  token?config.headers.Authorization='Bearer ' + token:null;

  return config
});

Vue.prototype.$axios = axios;
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
